#ifndef BMEMALLOCATOR_H
#define BMEMALLOCATOR_H

#include <unistd.h>

class BMemAllocator
{
public:
	BMemAllocator();
    ~BMemAllocator();

    void* operator new(size_t size);
    void operator delete(void *ptr);

private:
    BMemAllocator *next;
    static BMemAllocator *freeStore;
    static const int freeStoreChunk;

private:
    int id;
};

#endif // BMEMALLOCATOR_H
